﻿using System;
using System.Linq;
using System.Security.Principal;

namespace Shared
{
    public class Utils
    {
        public static string GetCurrentUserName()
        {
            WindowsIdentity identity = WindowsIdentity.GetCurrent();
            char[] chrArray = new char[1];
            chrArray[0] = '\\';
            return identity.Name.Split(chrArray)[1];
        }
    }
}